<%@ page language="java" %>
<%@ include file="/taglibs.jsp"%>
<%@ page
	import="java.util.List,
                 java.io.*,
                 java.util.*,
                java.util.Iterator,
                com.stable.model.*,
                com.stable.dao.*"%>
   
                    <%
                         List alleKunden = new Dao().findAllNotDelete(" from TblKunde");
                                    
                         Integer abwartId= new Integer(request.getParameter("abwartId")).intValue();
                                  System.out.println("abwartId " + abwartId);
                         TblAbwart kun =(TblAbwart) new Dao().get(TblAbwart.class, abwartId);
                                if (kun.getAbwart().contains("Kund")||kun.getAbwart().contains("kunde")){
                                 System.out.println("abwartId " + kun.getAbwart());
                                }
             
				if (alleKunden != null && kun.getAbwart().contains("Kund")) {
			%>    
                   
                        <select name="kundeId" size="1"
				onfocus="this.className = 'wm_input_focus';"
				onblur="this.className = 'wm_input';">
				<%
						for (Iterator iterator = alleKunden.iterator(); iterator
						.hasNext();) {
							TblKunde kunde = (TblKunde) iterator.next();
				%>
				<option value="<%=String.valueOf(kunde.getKundeId())%>">
					<%=kunde.getKundenname()%> <%=kunde.getStandort()%>
				</option>


				<%
				}
				%>
			</select> 
        <%
 }
 %>
    
